package com.yuezhi.producer.config;

import com.yuezhi.producer.entity.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class StudentConfig {

    @Bean
    Student Student(){
        Student student = new Student();
        student.setName("张仪");
        student.setAge(18);
        student.setGender("男");
        student.setAddress("荷花路51号");
        student.setGrade("1208");
        return student;
    }

}
